
package com.intretech.umsin.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.intretech.umsin.datasource.entity.BaseEntity;

import java.time.LocalDateTime;


 /**
 * @version V1.0
 * 用户信息:sys_user 对应实体类.
 * @ClassName: SysUser
 * @Description: 用户信息:sys_user 对应实体类.
 * @author: 李启联
 * @date:   2022-8-16 16:25:08
 * @Copyright: Copyright (c) 2022
 */
@TableName("`sys_user`")
public class SysUserEntity extends BaseEntity {
   // 部门/组织ID
   @TableField(value = "dept_id")
   private Long deptId;

   @TableField(exist = false)
   private String deptName;

   // 用户名
   @TableField(value = "username")
   private String username;
   // 账户
   @TableField(value = "account")
   private String account;
   // 昵称
   @TableField(value = "nick_name")
   private String nickName;
   // 性别
   @TableField(value = "sex")
   private String sex;
   // 手机号码
   @TableField(value = "phone")
   private String phone;
   // 座机
   @TableField(value = "tel")
   private String tel;
   // 邮箱
   @TableField(value = "email")
   private String email;
   // 头像地址
   @TableField(value = "head_img_url")
   private String headImgUrl;
   // 密码
   @TableField(value = "password")
   private String password;
   // 是否为admin账号
   @TableField(value = "admin")
   private Boolean admin;
   // 状态：1启用、0禁用
   @TableField(value = "enabled")
   private Boolean enabled;
   // 生日
   @TableField(value = "birthday")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
   private LocalDateTime birthday;
   // 用户类型(sys_user系统用户 app_user app端用户)
   @TableField(value = "user_type")
   private String userType;

   public Long getDeptId(){
        return this.deptId;
   }
   public void setDeptId(Long deptId){
        this.deptId = deptId;
   }

   public String getDeptName() {
       return deptName;
   }

   public void setDeptName(String deptName) {
       this.deptName = deptName;
   }

   public String getUsername(){
        return this.username;
   }
   public void setUsername(String username){
        this.username = username;
   }
   public String getAccount(){
        return this.account;
   }
   public void setAccount(String account){
        this.account = account;
   }
   public String getNickName(){
        return this.nickName;
   }
   public void setNickName(String nickName){
        this.nickName = nickName;
   }
   public String getSex(){
        return this.sex;
   }
   public void setSex(String sex){
        this.sex = sex;
   }
   public String getPhone(){
        return this.phone;
   }
   public void setPhone(String phone){
        this.phone = phone;
   }
   public String getTel(){
        return this.tel;
   }
   public void setTel(String tel){
        this.tel = tel;
   }
   public String getEmail(){
        return this.email;
   }
   public void setEmail(String email){
        this.email = email;
   }
   public String getHeadImgUrl(){
        return this.headImgUrl;
   }
   public void setHeadImgUrl(String headImgUrl){
        this.headImgUrl = headImgUrl;
   }
   public String getPassword(){
        return this.password;
   }
   public void setPassword(String password){
        this.password = password;
   }
   public Boolean getAdmin(){
        return this.admin;
   }
   public void setAdmin(Boolean admin){
        this.admin = admin;
   }
   public Boolean getEnabled(){
        return this.enabled;
   }
   public void setEnabled(Boolean enabled){
        this.enabled = enabled;
   }
   public LocalDateTime getBirthday(){
        return this.birthday;
   }
   public void setBirthday(LocalDateTime birthday){
        this.birthday = birthday;
   }
   public String getUserType(){
        return this.userType;
   }
   public void setUserType(String userType){
        this.userType = userType;
   }

  public SysUserEntity(){
  }

  @Override
  public String toString() {
         return "SysUserEntity{" +
                 "deptId=" + deptId +
                 ", deptName='" + deptName + '\'' +
                 ", username='" + username + '\'' +
                 ", account='" + account + '\'' +
                 ", nickName='" + nickName + '\'' +
                 ", sex='" + sex + '\'' +
                 ", phone='" + phone + '\'' +
                 ", tel='" + tel + '\'' +
                 ", email='" + email + '\'' +
                 ", headImgUrl='" + headImgUrl + '\'' +
                 ", password='" + password + '\'' +
                 ", admin=" + admin +
                 ", enabled=" + enabled +
                 ", birthday=" + birthday +
                 ", userType='" + userType + '\'' +
                 '}';
     }

 }